
  <script>
    var pathpdf = '<?= PUBLIC_FILE_SHOW . $quotation["Quotation"]["files"] ?>';
    //alert(pathpdf);
  </script>


<link rel="stylesheet" type="text/css" href="<?= $this->webroot ?>js/FlexPaper_2.2.4/css/flexpaper.css" />

<script type="text/javascript" src="<?= $this->webroot ?>js/FlexPaper_2.2.4/js/flexpaper.js"></script>
<script type="text/javascript" src="<?= $this->webroot ?>js/FlexPaper_2.2.4/js/flexpaper_handlers.js"></script>


<!-- Begin Sidebar Left -->
<?php echo $this->element('user/sidebar-left');?>
<!-- End Sidebar Left -->

<!-- Begin Content right -->
<div class="col-md-9 right">
<div class="panel panel-fix">
	<div class="panel-heading"> <h3 class="panel-title"><span class="glyphicon glyphicon-fire"></span> Báo giá</h3> </div>
	<div class="panel-body "> <!-- panel-bod -->
		<?= $quotation[$als]['content']; ?>

		<?php if(!empty($quotation[$als]['files'])):?>
		<div class="mt20 clearfix">

			<?php //echo $this->element('pdf/main');?>
			<div id="Viewer" class="flexpaper_viewer" style="width:100%; height:500px"></div>

		</div>
		<?php endif; ?>
	</div>
</div>
</div>


<script type="text/javascript">
    function getDocumentUrl(document){
        return "php/services/view.php?doc={doc}&format={format}&page={page}".replace("{doc}",document);
    }

    //var startDocument = "Paper";

    $('#Viewer').FlexPaperViewer(
            { config : {

                SWFFile : '<?= $this->webroot ?>js/FlexPaper_2.2.4/docs/Paper.pdf.swf',

                Scale : 1.28,
                ZoomTransition : 'easeOut',
                ZoomTime : 0.5,
                ZoomInterval : 0.2,
                FitPageOnLoad : false,
                FitWidthOnLoad : true, //false,
                FullScreenAsMaxWindow : false,
                ProgressiveLoading : false,
                MinZoomSize : 0.2,
                MaxZoomSize : 5,
                SearchMatchAll : false,
                InitViewMode : 'Portrait',
                RenderingOrder : 'flash',
                StartAtPage : '',

                ViewModeToolsVisible : false,
                ZoomToolsVisible : false,
                NavToolsVisible : false,
                CursorToolsVisible : false, //true,
                SearchToolsVisible : false,
                WMode : 'window',
                localeChain: 'en_US'
            }}
    );
</script>
